home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Works - The Rig…for All Your Daily Tasks
/
Microsoft Works - The Right Tools for All Your Daily Tasks.iso
/
bookshlf
/
setup.inf
< prev
Wrap
Text File
|
1991-09-28
|
9KB
|
203 lines
; Microsoft Bookshelf for Windows - Demonstration Setup
; (c) 1991, Microsoft Corp.
SetVariable(szWaitMessage, "{\b Setup will install Viewer runtimes, "
"Bookshelf Demonstration screen fonts and Program-manager icons.\par "
"}")
SetVariable(szDoneMessage, "The installation of the Bookshelf for Windows - 1991 Edition%n"
"Demonstration is now complete.%n%n"
"For the changes made to AUTOEXEC.BAT to become effective "
"you must reboot your computer. To do this, you must first "
"exit Windows and then simultaneously hold down the Ctrl, Alt, and "
"Del keys.%n%n")
SetVariable(iSize,"1000000")
WindowTitle("Setup: Windows Bookshelf Demonstration - 1991")
GetCurPath(szBkshelfPath) ; Path to the CD
GetWinPath(szWinPath) ; Path to the window directory
GetFromWinini(szPath,"multimedia viewer","ViewerPath","C:\BKSHDEMO")
lbPromptPath:
PromptPath(szViewerPath,<szPath>,
"Copy Bookshelf program files to:", "", "")
GetSpaceAvailable (iSpaceAvailable, <szViewerPath>)
IfLowerGoto (<iSize>, <iSpaceAvailable>, lbPathOK)
AskYesNo (Prompt, "Yes",
"There is not be enough space to install Bookshelf 1991. "
"Bookshelf requires "<iSize>" bytes of disk space. "
"Would you like to enter a new path for the files? ",
"Click on {\b Yes} or press {\b 'Y'} to enter a new path for the "
"Multimedia Viewer files.\par "
"Click on {\b No} or press {\b 'N'} to exit Setup so you can"
"make sufficient space available on your hard disk.\par "
"Run Setup again when there is enough free space on your hard "
"disk. ")
IfEqualGoto (<Prompt>, "Yes", lbPromptPath)
SetVariable(szDoneMessage, "The installation of Microsoft Bookshelf for Windows - 1991 Demonstration%n"
"is not complete. There was insufficient space on your hard disk.%n%n"
"Microsoft Bookshelf Demonstration requires "<iSize>" bytes of disk space.%n"
"Please run Setup again when there is enough free space on your hard disk.%n")
Goto(lbDone)
lbPathOK:
MakePath(<szViewerPath>)
ModifyAutoexec (<szViewerPath>, "", "",
"Setup must now make some changes to your {\b AUTOEXEC.BAT} file. "
"Click on the desired option and then click on {\b OK} to continue. With "
"the keyboard, use the arrow keys to select the desired option, and "
"then press {\b Enter} to continue.\par\par "
"{\b o} Select the first option to let Setup modify your "
"AUTOEXEC.BAT file\par "
"{\b o} Select the second option to first view the changes\par "
"{\b o} Select the third option to make the changes youself at a latter time\par\par",
"You can now view the proposed changes to the {\b AUTOEXEC.BAT} "
"file. If the changes were not made to your satisfaction, you can "
"modify the proposed batch file by editing the file in the top "
"window. Click on {\b OK} or press {\b Enter} to replace the "
"current batch file with the proposed one. To return to the "
"AUTOEXEC modification options dialog, click on {\b Cancel} or press "
"{\b Esc}.",
"Setup can save the proposed {\b AUTOEXEC.BAT} file to a file that "
"you specify. You will then need to modify the {\b AUTOEXEC.BAT} "
"file and then reboot your computer in order for Viewer "
"to function properly. To return to the AUTOEXEC modification "
"options dialog, click on {\b Cancel} or press {\b Esc}.")
OpenCopyProgress("Setup is copying the Bookshelf Demonstration Program.",
<szWaitMessage>)
IfFileExistsGoto (<szViewerPath> "FTENGINE.DLL", DontCopyFTENGINE)
CopyFile("VIEWER\FTENGINE.DLL", <szViewerPath> "FTENGINE.DLL", 41000)
DontCopyFTENGINE:
IfFileExistsGoto (<szViewerPath> "FTUI.DLL", DontCopyFTUI)
CopyFile("VIEWER\FTUI.DLL", <szViewerPath> "FTUI.DLL", 54000)
DontCopyFTUI:
IfFileExistsGoto (<szViewerPath> "MMP.DLL", DontCopyMMP)
CopyFile("VIEWER\MMP.DLL", <szViewerPath> "MMP.DLL", 10000)
DontCopyMMP:
IfFileExistsGoto (<szViewerPath> "MVAFF.DLL", DontCopyMVAFF)
CopyFile("VIEWER\MVAFF.DLL", <szViewerPath> "MVAFF.DLL", 39000)
DontCopyMVAFF:
IfFileExistsGoto (<szViewerPath> "MVAPI.DLL", DontCopyMVAPI)
CopyFile("VIEWER\MVAPI.DLL", <szViewerPath> "MVAPI.DLL", 7000)
DontCopyMVAPI:
IfFileExistsGoto (<szViewerPath> "MVAUDDLG.DLL", DontCopyMVAUDDLG)
CopyFile("VIEWER\MVAUDDLG.DLL", <szViewerPath> "MVAUDDLG.DLL", 38000)
DontCopyMVAUDDLG:
IfFileExistsGoto (<szViewerPath> "MVAUDIO.DLL", DontCopyMVAUDIO)
CopyFile("VIEWER\MVAUDIO.DLL", <szViewerPath> "MVAUDIO.DLL", 8000)
DontCopyMVAUDIO:
IfFileExistsGoto (<szViewerPath> "MVBMP.DLL", DontCopyMVBMP)
CopyFile("VIEWER\MVBMP.DLL", <szViewerPath> "MVBMP.DLL", 39000)
DontCopyMVBMP:
IfFileExistsGoto (<szViewerPath>"VIEWER.EXE", DontCopyVIEWER)
CopyFile("VIEWER\VIEWER.EXE", <szViewerPath> "VIEWER.EXE", 250000)
DontCopyVIEWER:
IfFileExistsGoto (<szViewerPath>"MVPUBMID.DLL", DontCopyMVPUBMID)
CopyFile("VIEWER\MVPUBMID.DLL", <szViewerPath>"MVPUBMID.DLL", 250000)
DontCopyMVPUBMID:
IfFileExistsGoto (<szViewerPath>"MVPUBAUD.DLL", DontCopyMVPUBAUD)
CopyFile("VIEWER\MVPUBAUD.DLL", <szViewerPath>"MVPUBAUD.DLL", 250000)
DontCopyMVPUBAUD:
SetProgressBarMsg("Setup is copying the Bookshelf Demonstration Icon files.")
CopyFile(books\books.ico , <szViewerPath>books.ico , 766)
CopyFile(books\encyc.ico , <szViewerPath>encyc.ico , 766)
CopyFile(books\bquote.ico , <szViewerPath>bquote.ico , 766)
CopyFile(books\atlas.ico , <szViewerPath>atlas.ico , 766)
CloseCopyProgress()
OpenFontProgress (
"Setup is installing fonts.", <szWaitMessage>)
; Note: The demo is intended for VGA systems
; VGA fonts
LoadScreenFont(viewer\vgalsb.fon)
LoadScreenFont(viewer\vgalsb1.fon)
LoadScreenFont(viewer\vgalsb2.fon)
CloseFontProgress()
OpenProgmanProgress("Installing Bookshelf 1991 Demonstration in a Program Group",
<szWaitMessage>)
OpenProgmanGroup("Bookshelf - 1991 Demo","Delete")
AddProgmanItem("Bookshelf Demo",
<szViewerpath>"viewer.exe "<szBkshelfPath>"books\books_d.mvb",
<szViewerPath>books.ico, 0)
AddProgmanItem("Bartlett's Demo",
<szViewerpath>"viewer.exe "<szBkshelfPath>"books\bquote_d.mvb",
<szViewerPath>bquote.ico, 0)
AddProgmanItem("Encyclopedia Demo",
<szViewerpath>"viewer.exe "<szBkshelfPath>"books\encyc_d.mvb",
<szViewerPath>encyc.ico, 0)
AddProgmanItem("Atlas Demo",
<szViewerpath>"viewer.exe "<szBkshelfPath>"books\atlas_d.mvb",
<szViewerPath>atlas.ico, 0)
CloseProgmanProgress()
; Point to the book
AddToProfileIni(<szWinPath>viewer.ini, "Bquote_d" , "Path" , <szBkshelfPath>BOOKS\)
AddToProfileIni(<szWinPath>viewer.ini, "Encyc_d" , "Path" , <szBkshelfPath>BOOKS\)
AddToProfileIni(<szWinPath>viewer.ini, "Atlas_d" , "Path" , <szBkshelfPath>BOOKS\)
AddToProfileIni(<szWinPath>viewer.ini, "Books_d" , "Path" , <szBkshelfPath>BOOKS\)
; Give the book a title
AddToProfileIni(<szWinPath>viewer.ini, "Bquote_d" , "Title" , "Bartlett'Demo")
AddToProfileIni(<szWinPath>viewer.ini, "Encyc_d" , "Title" , "CCE Demo")
AddToProfileIni(<szWinPath>viewer.ini, "Atlas_d" , "Title" , "Atlas Demo")
AddToProfileIni(<szWinPath>viewer.ini, "Books_d" , "Title" , "Books Demo")
; Setup the index file for all books.
AddToProfileIni(<szWinPath>viewer.ini, "Bquote_d" , "Indexfile" , "DEMO.IND")
AddToProfileIni(<szWinPath>viewer.ini, "Encyc_d" , "Indexfile" , "DEMO.IND")
AddToProfileIni(<szWinPath>viewer.ini, "Atlas_d" , "Indexfile" , "DEMO.IND")
AddToProfileIni(<szWinPath>viewer.ini, "Books_d" , "Indexfile" , "DEMO.IND")
; Setup the Near for full text seach
AddToProfileIni(<szWinPath>viewer.ini, "Bquote_d" , "Near" , "5")
AddToProfileIni(<szWinPath>viewer.ini, "Encyc_d" , "Near" , "5")
AddToProfileIni(<szWinPath>viewer.ini, "Atlas_d" , "Near" , "5")
AddToProfileIni(<szWinPath>viewer.ini, "Books_d" , "Near" , "5")
; Setup the QFlag values
AddToProfileIni(<szWinPath>viewer.ini, "Bquote_d" , "QFLAGS" , "3")
AddToProfileIni(<szWinPath>viewer.ini, "Encyc_d" , "QFLAGS" , "3")
AddToProfileIni(<szWinPath>viewer.ini, "Atlas_d" , "QFLAGS" , "3")
AddToProfileIni(<szWinPath>viewer.ini, "Books_d" , "QFLAGS" , "3")
lbDone:
DisplayMessage(<szDoneMessage> , "")